package com.tensquare.article.feign;

import com.tensquare.article.pojo.Notice;
import com.tensquare.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author BAO
 * @version V1.0
 * @Package com.tensquare.article.feign
 * @date 2020/12/5 22:11
 * @description:
 */
@FeignClient(value = "tensquare-notice",fallback = Exception.class)
public interface NoticeFeignClient {

    /**
     * 添加消息
     * @param notice
     * @return
     */
    @PostMapping("/notice/save")
    public Result add(@RequestBody Notice notice);
}
